{include file='common/head'}
<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
        <a >首页</a>
        <a >演示</a>
        <a>
          <cite>商户订单</cite>
        </a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="{:url('shop/shop/shopindent')}" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
            <span>发布时间</span><input class="layui-input" placeholder="开始日" name="datemin" id="start">至
            <input class="layui-input" placeholder="截止日" name="datemax" id="end">
            <div class="layui-input-inline">
                <select name="zid">
                    <option value="">支付方式</option>
                    <option value="1">微信支付</option>
                    <option value="2">支付宝支付</option>
                    <option value="3">银行卡支付</option>
                </select>
            </div>
            <input type="submit" name="sub" class="layui-btn" value="开始搜索" lay-submit="" lay-filter="sreach">
        </form>
    </div>
    <table class="layui-table">
        <thead>
        <tr style="text-align: center">
            <th>序号NO</th>
            <th>订单编号</th>
            <th>订单价格</th>
            <th>支付方式</th>
            <th>发布时间</th>
            <th>订单状态</th>
        </tr>
        </thead>
        <tbody>
        {volist name="indent" id="b" key='key' }
        <tr style="text-align: center">
            <td>{$b.tid}</td>
            <td>{$b.t_number}</td>
            <td>{$b.t_money}元</td>
            <td>{$b.z_paytype.z_type}</td>
            <td>{$b.z_createtime}</td>
            {if $b.sid == 1}<td style="color: green">等待匹配</td>{elseif $b.sid ==2 }<td style="color: blue">匹配成功</td>{elseif $b.sid==3}<td style="color: red;">交易成功</td>{elseif $b.sid==4}<td style="color: red;">已确认打款</td>{elseif $b.sid==5}<td style="color: red;">确认收款</td>{elseif $b.sid==6}<td style="color: red;">汇款完成</td>{/if}
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page">
        <div>
            {$page}
        </div>
    </div>

</div>
<script>
    function banner_edit(obj){
        var sid=$(obj).attr('attr_sid');
        if(sid==1){

            var tid=$(obj).attr('attr_id');
            //alert(mid);
            var url="{:Url('admin/indent/update')}?tid="+  tid;
            // alert(url);
            x_admin_show('查看',url);
        }else{
            layer.msg('订单已被匹配，无法修改',{icon:9},1000);
        }
    }
</script>

</body>

</html>